package com.example.day22;

/**
 * @author Lenovo
 */
public class Flyable {
    void fly(String s) {
        
    }
}
public class FlyableDemo {
    public static void main(String[] args) {
        private static void useFlyable useFlyable(new Flyable() {
            
            public void fly(String s) {
                System.out.println(s);
                System.out.println("飞机自驾游");
            }
        });
        System.out.println("--------");
        useFlyable((String s) -> {
            System.out.println(s);
            System.out.println("飞机自驾游");
        });
        (Flyable f){
            f.fly("风和日丽，晴空万里");
        }
    }

    private static void useFlyable(Flyable 飞机自驾游) {
    }
